package com.tenny.bookstore.service;

import com.tenny.bookstore.bean.Book;
import com.tenny.bookstore.bean.Category;
import com.tenny.bookstore.commons.Page;

import java.util.List;



public interface BusinessService {
	/**
	 *
	 * @param category
	 */
	void addCategory(Category category);
	/**
	 *
	 * @return
	 */
	List<Category> findAllCategories();
	/**
	 *
	 * @param categoryId
	 * @return
	 */
	Category findCategoryById(String categoryId);
	/**
	 *
	 * @param book
	 */
	void addBook(Book book);
	/**
	 *
	 * @param pagenum Ĭ��Ϊ1
	 * @return
	 */
	Page findAllBookPageRecords(String pagenum);
	/**
	 * ����id��ѯһ����
	 * @param bookId
	 * @return
	 */
	Book findBookById(String bookId);
}
